#include "img_struct.h"

statistics_config_t mt9t002_tile_config = {
	1,
	1,

	24,
	16,
	128,
	48,
	160,
	250,
	160,
	250,
	0,
	16383,

	12,
	8,
	0,
	8,
	340,
	512,

	8,
	5,
	256,
	10,
	448,
	816,
	448,
	816,

	0,
	16383,
};
 line_t mt9t002_50hz_lines[] = {
		{
		{{SHUTTER_1BY8000, ISO_100, 0}}, {{SHUTTER_1BY100, ISO_100,0}}
		},

		{
		{{SHUTTER_1BY100, ISO_100, 0}}, {{SHUTTER_1BY100, ISO_300, 0}}
		},

		{
		{{SHUTTER_1BY50, ISO_100, 0}}, {{SHUTTER_1BY50, ISO_800,0}}
		},

		{
		{{SHUTTER_1BY30, ISO_100, 0}}, {{SHUTTER_1BY30, ISO_6400,0}}
		}
};

 line_t mt9t002_60hz_lines[] = {
		{
		{{SHUTTER_1BY8000, ISO_100, 0}}, {{SHUTTER_1BY120, ISO_100,0}}
		},

		{
		{{SHUTTER_1BY120, ISO_100, 0}}, {{SHUTTER_1BY120, ISO_300, 0}}
		},

		{
		{{SHUTTER_1BY60, ISO_100, 0}}, {{SHUTTER_1BY60, ISO_800,0}}
		},

		{
		{{SHUTTER_1BY30, ISO_100, 0}}, {{SHUTTER_1BY30, ISO_6400,0}}
		}
};

img_awb_param_t mt9t002_awb_param = {
	{
		{1700, 1024, 1600},	//AUTOMATIC
		{1200, 1024, 3025},	//INCANDESCENT
		{1250, 1024, 2425},	//D4000
		{1450, 1024, 1850},	//D5000
		{1700, 1024, 1600},	//SUNNY //{1875, 1024, 1400}
		{1850, 1024, 1500},	//CLOUDY
		{1024, 1024, 1024},	//FLASH
		{1024, 1024, 1024},	//FLUORESCENT
		{1024, 1024, 1024},	//FLUORESCENT_H
		{1024, 1024, 1024},	//UNDER WATER
		{1875, 1024, 1400},	//CUSTOM
		{1700, 1024, 1600},	//AUTOMATIC OUTDOOR
	},
	{
		12,
		{{750,1650,2600,3550,-2500,4800,-1900,6400,1000,1100,1300,2500,1},	// 0	INCANDESCENT
		 {900,1500,2100,2750,-2000,4200,-1200,4300,1500,50,800,2000,2},	// 1    D4000
		 {1000,1700,1500,2200,-2500,4600,-1000,3700,1000,50,800,1300,4},	// 2	D5000
		 {1250,1950,1200,1900,-2500,4500,-800,3250,500,500,550,1000,8},	// 3    SUNNY
		 {1400,2100,1100,1800,-800,2300,-750,3200,500,300,550,850,4},	// 4    CLOUDY
		 {   0,    0,    0,    0,     0,    0,     0,    0,   0,   0,    0,    0, 0 },	// 5    PROJECTOR
		 { 1450,2000,1700,3550,-1500,4150,-1500,6000,600,700,1000,1200,-1},	// 6 GREEN REGION
		 {   0,    0,    0,    0,     0,    0,     0,    0,   0,   0,    0,    0, 0 },	// 7	FLASH
		 {  1450,1800,2600,3550,-1500,4850,-1500,6000,600,1650,1000,2000,1},	// 8	FLUORESCENT
		 {   0,    0,    0,    0,     0,    0,     0,    0,   0,   0,    0,    0, 0 },	// 9    FLUORESCENT_H
		 {   0,    0,    0,    0,     0,    0,     0,    0,   0,   0,    0,    0, 0 },	//UNDER WATER
		 {   0,    0,    0,    0,     0,    0,     0,    0,   0,   0,    0,    0, 0 }}//CUSTOM
	},
	{	{ 0 ,6},	//LUT num. AUTOMATIC  INDOOR
		{ 0, 1},	//LUT num. INCANDESCENT
		{ 1, 1},	//LUT num. D4000
		{ 2, 1},	//LUT num. D5000
		{ 2, 5},	//LUT num. SUNNY
		{ 4, 3},	//LUT num. CLOUDY
		{ 7, 1},	//LUT num. FLASH
		{ 8, 1},	//LUT num. FLUORESCENT
		{ 9, 1},	//LUT num. FLUORESCENT_H
		{11, 1},	//LUT num. UNDER WATER
		{11, 1},	//LUT num. CUSTOM
		{ 0, 7},	//LUT num. AUTOMATIC  OUTDOOR
	 }
};
u32 mt9t002_ae_agc_dgain[AGC_DGAIN_TABLE_LENGTH]=
{
	1051,
	1048,1054,1051,1048,1046,1051,1049,1047,1052,1046,1044,1042,1048,1046,1044,1042,
	1048,1047,1046,1045,1051,1050,1048,1047,1049,1055,1053,1052,1048,1049,1054,1053,
	1052,1051,1050,1049,1054,1053,1052,1047,1046,1045,1045,1050,1049,1048,1048,1047,
	1046,1045,1045,1044,1044,1049,1052,1052,1051,1050,1050,1049,1049,1049,1049,1048,
	1048,1048,1048,1047,1047,1044,1044,1045,1045,1045,1046,1046,1046,1047,1048,1048,
	1049,1044,1044,1045,1047,1048,1048,1049,1049,1050,1045,1046,1046,1047,1047,1048,
	1049,1044,1045,1047,1048,1050,1046,1047,1048,1050,1051,1048,1049,1050,1051,1048,
	1049,1050,1043,1044,1044,1041,1042,1043,1044,1038,1043,1040,1042,1044,1041,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	};

u32 mt9t002_ae_sht_dgain_3m15[SHUTTER_DGAIN_TABLE_LENGTH] =
{
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,
	1024,1026,1022,1024,1037,1035,1027,1024,1037,1034,1026,1024,1034,1035,1026,1024,
	1038,1035,1028,1024,1038,1036,1033,1026,1024,1038,1035,1026,1024,1040,1040,1032,
	1032,1024,1047,1038,1035,1027,1024,1040,1037,1028,1024,1043,1040,1033,1026,1024,
	1042,1036,1034,1032,1026,1024,1043,1040,1033,1030,1024,1046,1040,1035,1030,1024,
	1048,1043,1040,1033,1033,1024,1053,1044,1043,1033,1034,1024,1053,1043,1042,1035,
	1032,1024,1052,1044,1041,1034,1031,1024,1052,1045,1041,1034,1026,1024,1049,1048,
	1041,1040,1033,1031,1024,1054,1047,1045,1037,1034,1026,1024,1050,1049,1040,1039,
	1031,1030,1024,1050,1049,1045,1038,1034,1027,1024,1055,1059,1047,1040,1039,1033,
	1032,1024,1062,1053,1053,1043,1042,1034,1032,1024,1062,1055,1052,1045,1042,1034,
	1027,1024,1060,1058,1051,1049,1042,1040,1033,1031,1024,1066,1059,1055,1049,1044,
	1039,1034,1029,1024,1066,1061,1058,1052,1051,1043,1042,1033,1032,1024,1072,1063,
	1062,1052,1051,1044,1041,1034,1029,1024,1073,1066,1064,1057,1055,1048,1046,1039,
	1033,1033,1024,1064,1069,1065,1059,1056,1050,1047,1042,1041,1033,1032,1024,1079,
	1071,1070,1062,1060,1051,1050,1043,1041,1034,1031,1024,1081,1074,1071,1064,1061,
	1054,1051,1045,1042,1034,1033,1027,1024,1079,1078,1069,1070,1063,1061,1053,1051,
	1044,1042,1035,1033,1026,1024,1085,1083,1076,1074,1067,1066,1059,1059,1050,1050,
	1041,1042,1032,1033,1027,1024,1089,1084,1079,1077,1070,1068,1060,1058,1051,1050,
	1042,1041,1033,1032,1026,1024,1092,1092,1084,1084,1078,1077,1070,1068,1061,1060,
	1053,1051,1045,1043,1037,1036,1030,1024,1024,1100,1096,1093,1089,1085,1081,1077,
	1068,1070,1068,1063,1061,1055,1053,1048,1045,1040,1038,1033,1030,1024,1113,1106,
	1105,1098,1097,1090,1089,1082,1081,1075,1072,1067,1065,1059,1057,1051,1048,1039,
	1041,1038,1032,1029,1024,1120,1116,1113,1109,1106,1101,1098,1094,1090,1085,1082,
	1076,1075,1069,1067,1061,1060,1054,1053,1046,1045,1038,1036,1031,1028,1024,1130,
	1125,1121,1116,1112,1110,1103,1101,1095,1092,1091,1084,1077,1075,1068,1067,1059,
	1058,1051,1049,1042,1037,1034,1031,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
};
/* 1080p 25 & 30 & 60 use the same table, default table for 1080p mode */
u32 mt9t002_ae_sht_dgain_1080p30[SHUTTER_DGAIN_TABLE_LENGTH] =
{
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,
	1024,1019,1026,1027,1018,1025,1030,1017,1024,1033,1017,1024,1033,1011,1011,1024,
	1008,1028,1036,1021,1024,1044,1027,1024,1045,1030,1024,1045,1032,1023,1045,1034,
	1024,1046,1037,1025,1047,1039,1027,1034,1042,1029,1036,1044,1032,1038,1029,1035,
	1041,1031,1038,1044,1032,1024,1047,1034,1027,1034,1036,1032,1038,1040,1037,1042,
	1024,1041,1044,1024,1024,1047,1029,1032,1035,1036,1040,1042,1024,1045,1041,1021,
	1024,1043,1029,1038,1034,1024,1050,1042,1030,1036,1047,1037,1044,1031,1024,1051,
	1036,1030,1036,1041,1038,1043,1024,1024,1051,1034,1037,1041,1024,1050,1050,1033,
	1038,1035,1041,1047,1042,1028,1034,1051,1038,1044,1035,1024,1054,1044,1036,1042,
	1032,1024,1054,1042,1035,1041,1029,1048,1053,1042,1034,1039,1028,1046,1051,1040,
	1035,1041,1029,1049,1055,1048,1033,1039,1037,1050,1053,1055,1035,1036,1041,1024,
	1052,1057,1044,1036,1042,1033,1052,1058,1054,1037,1042,1043,1024,1059,1062,1044,
	1041,1046,1031,1024,1063,1052,1038,1043,1037,1020,1024,1059,1043,1047,1050,1033,
	1033,1039,1024,1055,1060,1047,1037,1042,1033,1019,1024,1060,1044,1049,1051,1034,
	1036,1041,1026,1024,1069,1057,1048,1054,1046,1034,1039,1036,1061,1065,1066,1047,
	1049,1053,1035,1034,1039,1024,1062,1068,1055,1047,1053,1043,1032,1038,1031,1063,
	1069,1064,1048,1054,1051,1035,1038,1038,1021,1024,1072,1054,1056,1059,1042,1042,
	1046,1029,1028,1033,1066,1063,1068,1052,1048,1053,1039,1034,1038,1026,1019,1024,
	1064,1057,1063,1051,1044,1049,1038,1031,1037,1025,1018,1024,1066,1062,1068,1055,
	1051,1057,1045,1042,1048,1034,1033,1038,1022,1024,1085,1068,1071,1073,1056,1060,
	1061,1045,1050,1048,1034,1040,1034,1024,1090,1081,1073,1078,1065,1061,1065,1049,
	1048,1051,1034,1036,1036,1020,1024,1084,1072,1078,1071,1063,1068,1056,1053,1058,
	1043,1043,1046,1030,1033,1034,1019,1024,1080,1064,1066,1073,1059,1057,1064,1054,
	1047,1054,1050,1037,1044,1045,1029,1035,1039,1024,1112,1117,1101,1096,1102,1089,
	1079,1084,1077,1064,1068,1065,1048,1051,1053,1035,1035,1038,1022,1019,1024,1108,
	1101,1108,1098,1088,1094,1089,1075,1080,1079,1062,1066,1069,1052,1052,1057,1042,
	1038,1043,1033,1025,1030,1024,1117,1122,1121,1105,1108,1111,1094,1095,1100,1085,
	1080,1085,1076,1067,1072,1068,1053,1057,1058,1042,1043,1047,1033,1029,1033,1024,
	1134,1140,1136,1121,1126,1127,1111,1111,1116,1101,1097,1102,1093,1083,1088,1084,
	1070,1074,1075,1059,1060,1064,1050,1047,1051,1041,1032,1037,1032,1020,1024,1160,
	1144,1147,1150,1135,1134,1139,1127,1122,1127,1120,1110,1114,1112,1099,1103,1104,
	1089,1090,1095,1081,1078,1083,1072,1065,1070,1065,1054,1058,1056,1043,1046,1047,
	1033,1034,1037,1024,1177,1182,1171,1166,1171,1163,1155,1160,1154,1144,1149,1146,
	1133,1138,1138,1124,1127,1129,1115,1116,1119,1105,1106,1110,1096,1095,1099,1087,
	1084,1089,1078,1074,1079,1068,1063,1068,1059,1054,1058,1050,1044,1048,1041,1034,
	1038,1031,1024,1211,1204,1197,1202,1195,1188,1193,1185,1178,1183,1176,1170,1175,
	1166,1161,1165,1155,1152,1157,1146,1144,1148,1137,1136,1139,1126,1127,1130,1117,
	1118,1120,1107,1110,1110,1098,1101,1100,1089,1093,1090,1080,1085,1079,1073,1077,
	1069,1064,1069,1059,1057,1059,1048,1048,1051,1038,1040,1040,1028,1032,1029,1020,
	1024,1235,1226,1227,1218,1210,1212,1199,1195,1195,1181,1180,1179,1164,1164,1161,
	1148,1149,1143,1131,1133,1125,1116,1118,1106,1101,1101,1089,1086,1084,1071,1070,
	1067,1055,1055,1049,1039,1040,1031,1024,
};

u32 mt9t002_ae_sht_dgain[SHUTTER_DGAIN_TABLE_LENGTH] =
{
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
};
/*dgain table for sensor AR0330*/
u32 mt9t002_ae_sht_dgain_2304x1296[SHUTTER_DGAIN_TABLE_LENGTH] =
{
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,
	1032,1030,1024,1040,1040,1032,1026,1024,1040,1038,1032,1024,1024,1041,1035,1034,
	1026,1024,1044,1036,1037,1030,1024,1048,1040,1037,1032,1024,1049,1041,1033,1032,
	1024,1047,1044,1037,1037,1031,1024,1051,1043,1037,1035,1027,1024,1047,1039,1039,
	1032,1025,1024,1046,1041,1039,1031,1028,1024,1046,1046,1039,1032,1031,1024,1050,
	1045,1039,1037,1032,1024,1020,1049,1043,1039,1035,1032,1030,1024,1054,1048,1041,
	1040,1033,1025,1022,1051,1044,1042,1037,1033,1031,1024,1057,1052,1045,1042,1038,
	1031,1029,1024,1053,1053,1046,1040,1037,1031,1028,1024,1054,1051,1046,1039,1036,
	1031,1024,1021,1055,1051,1048,1043,1040,1037,1030,1027,1024,1057,1055,1051,1046,
	1045,1038,1035,1031,1024,1066,1059,1052,1050,1045,1041,1038,1031,1029,1024,1061,
	1057,1053,1048,1044,1038,1035,1031,1024,1021,1062,1058,1056,1050,1047,1044,1037,
	1034,1031,1027,1024,1065,1063,1059,1054,1051,1046,1043,1040,1034,1032,1028,1024,
	1071,1064,1062,1057,1051,1046,1041,1040,1036,1031,1028,1024,1071,1067,1063,1059,
	1056,1050,1047,1043,1039,1035,1031,1028,1024,1074,1070,1067,1063,1061,1055,1051,
	1049,1044,1041,1036,1032,1030,1024,1082,1076,1072,1070,1064,1061,1058,1053,1050,
	1047,1043,1041,1035,1032,1029,1024,1084,1078,1074,1073,1066,1064,1060,1056,1054,
	1048,1046,1042,1036,1036,1030,1027,1024,1083,1083,1077,1072,1071,1065,1063,1060,
	1054,1054,1048,1043,1042,1036,1034,1030,1024,1024,1094,1084,1083,1077,1075,1072,
	1067,1067,1061,1057,1056,1051,1049,1046,1040,1039,1035,1032,1030,1024,1023,1100,
	1088,1087,1084,1081,1077,1073,1072,1069,1064,1061,1059,1055,1051,1049,1046,1044,
	1039,1032,1027,1020,1012,1012,1109,1096,1094,1090,1089,1086,1078,1078,1074,1070,
	1069,1065,1063,1060,1058,1054,1050,1048,1043,1042,1039,1035,1031,1022,1020,1010,
	1111,1109,1102,1097,1097,1092,1092,1088,1083,1084,1079,1075,1075,1070,1070,1065,
	1061,1062,1056,1053,1052,1047,1047,1043,1037,1038,1033,1030,1018,1016,1004,1128,
	1121,1114,1111,1102,1095,1089,1089,1083,1077,1077,1071,1069,1065,1060,1059,1053,
	1049,1048,1042,1040,1036,1030,1030,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
};

/* 2048x1536 25 & 30 & 60 use the same table, default table for mode 2048x1536 */
u32 mt9t002_ae_sht_dgain_2048x1536_25[SHUTTER_DGAIN_TABLE_LENGTH] =
{
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,
	1024,1032,1024,1034,1029,1023,1034,1029,1024,1035,1029,1024,1035,1029,1024,1036,
	1030,1023,1036,1030,1024,1036,1030,1024,1036,1030,1024,1038,1033,1029,1024,1036,
	1030,1024,1037,1030,1024,1038,1034,1029,1024,1038,1032,1026,1041,1035,1029,1024,
	1039,1033,1026,1042,1036,1030,1024,1040,1034,1029,1024,1040,1034,1029,1024,1040,
	1034,1029,1024,1041,1035,1029,1024,1041,1036,1030,1024,1042,1036,1030,1024,1042,
	1036,1030,1024,1044,1040,1034,1029,1024,1043,1037,1030,1024,1045,1039,1034,1029,
	1024,1045,1038,1031,1024,1047,1041,1035,1029,1024,1047,1041,1035,1029,1024,1047,
	1042,1036,1030,1024,1049,1044,1039,1034,1029,1024,1049,1042,1036,1030,1024,1051,
	1045,1040,1035,1029,1024,1052,1046,1041,1035,1029,1024,1052,1045,1037,1030,1024,
	1054,1049,1044,1039,1034,1028,1024,1054,1048,1042,1036,1029,1024,1056,1051,1045,
	1041,1035,1029,1024,1057,1051,1044,1037,1031,1024,1060,1055,1049,1044,1039,1034,
	1028,1024,1061,1055,1048,1042,1036,1030,1024,1063,1057,1052,1046,1040,1035,1029,
	1024,1065,1059,1054,1048,1042,1035,1030,1024,1068,1061,1055,1049,1043,1036,1030,
	1024,1071,1065,1059,1053,1048,1041,1036,1030,1024,1072,1067,1060,1054,1048,1041,
	1035,1029,1024,1075,1069,1063,1058,1053,1047,1041,1035,1029,1024,1078,1072,1066,
	1059,1053,1046,1040,1037,1030,1024,1082,1076,1069,1064,1058,1052,1047,1041,1035,
	1029,1024,1087,1080,1074,1068,1061,1055,1049,1043,1036,1030,1024,1092,1087,1081,
	1077,1071,1064,1059,1053,1047,1041,1035,1029,1024,1097,1090,1084,1078,1072,1066,
	1061,1054,1047,1041,1035,1029,1024,1103,1097,1091,1085,1078,1072,1065,1059,1053,
	1047,1041,1035,1029,1024,1111,1105,1100,1095,1089,1083,1077,1071,1065,1058,1053,
	1047,1041,1035,1029,1024,1120,1114,1108,1101,1094,1087,1081,1075,1068,1062,1055,
	1049,1043,1036,1030,1024,1131,1126,1120,1114,1108,1102,1096,1091,1084,1078,1072,
	1067,1060,1054,1048,1042,1036,1030,1024,1145,1139,1133,1127,1121,1114,1108,1102,
	1095,1089,1082,1076,1069,1062,1056,1050,1043,1037,1030,1024,1164,1157,1151,1144,
	1138,1131,1125,1118,1112,1106,1100,1094,1088,1081,1076,1070,1064,1058,1052,1046,
	1040,1034,1029,1024,1187,1181,1174,1168,1162,1156,1149,1143,1136,1130,1123,1116,
	1109,1103,1097,1090,1084,1078,1071,1065,1058,1052,1045,1038,1031,1024,1219,1213,
	1207,1200,1193,1186,1179,1172,1165,1158,1151,1144,1137,1130,1123,1116,1109,1102,
	1096,1089,1083,1077,1071,1064,1058,1052,1046,1041,1034,1029,1024,1268,1261,1255,
	1248,1241,1235,1229,1222,1216,1209,1203,1196,1190,1184,1177,1170,1163,1156,1150,
	1143,1137,1130,1122,1116,1109,1102,1095,1088,1080,1073,1066,1060,1053,1045,1038,
	1030,1024,1347,1340,1332,1326,1318,1310,1304,1295,1287,1281,1273,1265,1258,1251,
	1243,1235,1228,1221,1214,1207,1200,1192,1186,1178,1172,1165,1157,1150,1144,1136,
	1128,1121,1114,1107,1101,1093,1087,1080,1073,1066,1059,1052,1045,1038,1031,1024,
	1500,1493,1483,1477,1468,1461,1452,1444,1436,1428,1421,1414,1405,1398,1390,1381,
	1373,1365,1358,1350,1342,1333,1327,1318,1311,1303,1295,1288,1280,1272,1264,1256,
	1249,1243,1234,1226,1219,1211,1204,1196,1188,1180,1172,1164,1157,1149,1142,1134,
	1126,1118,1110,1102,1093,1086,1078,1071,1063,1055,1047,1039,1032,1024,1910,1890,
	1869,1847,1826,1803,1782,1758,1738,1718,1693,1672,1652,1631,1608,1587,1565,1542,
	1522,1502,1479,1457,1436,1415,1394,1371,1350,1329,1307,1285,1262,1241,1219,1198,
	1176,1154,1133,1110,1089,1067,1047,1024,
};

u8 mt9t002_dlight[2] = {128,4};
